﻿using System;
using wojilu.ORM;

namespace wojilu.Apps.Qycms.Domain
{
    [Table("ybb_templates")]
    [Serializable]
    public class Templates : ObjectBase<Templates>
    {
        public Templates() { }

        public Templates(String lng, String templatename, String templatecode, String title, String templatecontent, String pic, String typeclass, Int32 styleclass, Int32 lockin, DateTime addtime, Int32 isclass)
        {
            this.lng = lng;
            this.templatename = templatename;
            this.templatecode = templatecode;
            this.title = title;
            this.templatecontent = templatecontent;
            this.pic = pic;
            this.typeclass = typeclass;
            this.styleclass = styleclass;
            this.lockin = lockin;
            this.addtime = addtime;
            this.isclass = isclass;
            this.insert();
        }

        [Default(""), NotNull(""), Column(Length = 50)]
        public String lng { get; set; }

        [Default(""), NotNull(""), Column(Length = 200)]
        public String templatename { get; set; }

        [Default(""), NotNull(""), Column(Length = 100)]
        public String templatecode { get; set; }

        [Default(""), Column(Length = 200)]
        public String title { get; set; }

        [LongText, Default("")]
        public String templatecontent { get; set; }

        [Default(""), Column(Length = 50)]
        public String pic { get; set; }

        [Default(""), Column(Length = 15)]
        public String typeclass { get; set; }

        [TinyInt, Default(""), Column(Length = 1)]
        public Int32 styleclass { get; set; }

        [TinyInt, Default(""), Column(Length = 1)]
        public Int32 lockin { get; set; }

        [Default(""), Column(Length = 1)]
        public DateTime addtime { get; set; }

        [TinyInt, Default(""), Column(Length = 1)]
        public Int32 isclass { get; set; }

    }
}
